Optimal. Leaf size=381 \[ \frac{(-1)^{2/3} \sqrt [3]{b} \cosh \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{Chi}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 a^{4/3}}-\frac{\sqrt [3]{-1} \sqrt [3]{b} \cosh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Chi}\left (-x d-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}+\frac{\sqrt [3]{b} \cosh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}-\frac{(-1)^{2/3} \sqrt [3]{b} \sinh \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{Shi}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 a^{4/3}}+\frac{\sqrt [3]{b} \sinh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}-\frac{\sqrt [3]{-1} \sqrt [3]{b} \sinh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Shi}\left (x d+\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}+\frac{d \sinh (c) \text{Chi}(d x)}{a}+\frac{d \cosh (c) \text{Shi}(d x)}{a}-\frac{\cosh (c+d x)}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.600099, antiderivative size = 381, normalized size of antiderivative = 1., number of steps used = 17, number of rules used = 5, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.263, Rules used = {5293, 3297, 3303, 3298, 3301} \[ \frac{(-1)^{2/3} \sqrt [3]{b} \cosh \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{Chi}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 a^{4/3}}-\frac{\sqrt [3]{-1} \sqrt [3]{b} \cosh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Chi}\left (-x d-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}+\frac{\sqrt [3]{b} \cosh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}-\frac{(-1)^{2/3} \sqrt [3]{b} \sinh \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{Shi}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 a^{4/3}}+\frac{\sqrt [3]{b} \sinh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}-\frac{\sqrt [3]{-1} \sqrt [3]{b} \sinh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Shi}\left (x d+\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 a^{4/3}}+\frac{d \sinh (c) \text{Chi}(d x)}{a}+\frac{d \cosh (c) \text{Shi}(d x)}{a}-\frac{\cosh (c+d x)}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5293
Rule 3297
Rule 3303
Rule 3298
Rule 3301
Rubi steps
\begin{align*} \int \frac{\cosh (c+d x)}{x^2 \left (a+b x^3\right )} \, dx &=\int \left (\frac{\cosh (c+d x)}{a x^2}-\frac{b x \cosh (c+d x)}{a \left (a+b x^3\right )}\right ) \, dx\\ &=\frac{\int \frac{\cosh (c+d x)}{x^2} \, dx}{a}-\frac{b \int \frac{x \cosh (c+d x)}{a+b x^3} \, dx}{a}\\ &=-\frac{\cosh (c+d x)}{a x}-\frac{b \int \left (-\frac{\cosh (c+d x)}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}-\frac{(-1)^{2/3} \cosh (c+d x)}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x\right )}+\frac{\sqrt [3]{-1} \cosh (c+d x)}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x\right )}\right ) \, dx}{a}+\frac{d \int \frac{\sinh (c+d x)}{x} \, dx}{a}\\ &=-\frac{\cosh (c+d x)}{a x}+\frac{b^{2/3} \int \frac{\cosh (c+d x)}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 a^{4/3}}-\frac{\left (\sqrt [3]{-1} b^{2/3}\right ) \int \frac{\cosh (c+d x)}{\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x} \, dx}{3 a^{4/3}}+\frac{\left ((-1)^{2/3} b^{2/3}\right ) \int \frac{\cosh (c+d x)}{\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x} \, dx}{3 a^{4/3}}+\frac{(d \cosh (c)) \int \frac{\sinh (d x)}{x} \, dx}{a}+\frac{(d \sinh (c)) \int \frac{\cosh (d x)}{x} \, dx}{a}\\ &=-\frac{\cosh (c+d x)}{a x}+\frac{d \text{Chi}(d x) \sinh (c)}{a}+\frac{d \cosh (c) \text{Shi}(d x)}{a}+\frac{\left (b^{2/3} \cosh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 a^{4/3}}-\frac{\left (\sqrt [3]{-1} b^{2/3} \cosh \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\cos \left (\frac{(-1)^{5/6} \sqrt [3]{a} d}{\sqrt [3]{b}}-i d x\right )}{\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x} \, dx}{3 a^{4/3}}+\frac{\left ((-1)^{2/3} b^{2/3} \cosh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\cos \left (\frac{\sqrt [6]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-i d x\right )}{\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x} \, dx}{3 a^{4/3}}+\frac{\left (b^{2/3} \sinh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 a^{4/3}}-\frac{\left ((-1)^{5/6} b^{2/3} \sinh \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\sin \left (\frac{(-1)^{5/6} \sqrt [3]{a} d}{\sqrt [3]{b}}-i d x\right )}{\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x} \, dx}{3 a^{4/3}}-\frac{\left (\sqrt [6]{-1} b^{2/3} \sinh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\sin \left (\frac{\sqrt [6]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-i d x\right )}{\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x} \, dx}{3 a^{4/3}}\\ &=-\frac{\cosh (c+d x)}{a x}+\frac{(-1)^{2/3} \sqrt [3]{b} \cosh \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Chi}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 a^{4/3}}-\frac{\sqrt [3]{-1} \sqrt [3]{b} \cosh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Chi}\left (-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 a^{4/3}}+\frac{\sqrt [3]{b} \cosh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Chi}\left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 a^{4/3}}+\frac{d \text{Chi}(d x) \sinh (c)}{a}+\frac{d \cosh (c) \text{Shi}(d x)}{a}-\frac{(-1)^{2/3} \sqrt [3]{b} \sinh \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Shi}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 a^{4/3}}+\frac{\sqrt [3]{b} \sinh \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Shi}\left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 a^{4/3}}-\frac{\sqrt [3]{-1} \sqrt [3]{b} \sinh \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Shi}\left (\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 a^{4/3}}\\ \end{align*}
Mathematica [C] time = 0.406599, size = 215, normalized size = 0.56 \[ -\frac{x \text{RootSum}\left [\text{$\#$1}^3 b+a\& ,\frac{-\sinh (\text{$\#$1} d+c) \text{Chi}(d (x-\text{$\#$1}))+\cosh (\text{$\#$1} d+c) \text{Chi}(d (x-\text{$\#$1}))+\sinh (\text{$\#$1} d+c) \text{Shi}(d (x-\text{$\#$1}))-\cosh (\text{$\#$1} d+c) \text{Shi}(d (x-\text{$\#$1}))}{\text{$\#$1}}\& \right ]+x \text{RootSum}\left [\text{$\#$1}^3 b+a\& ,\frac{\sinh (\text{$\#$1} d+c) \text{Chi}(d (x-\text{$\#$1}))+\cosh (\text{$\#$1} d+c) \text{Chi}(d (x-\text{$\#$1}))+\sinh (\text{$\#$1} d+c) \text{Shi}(d (x-\text{$\#$1}))+\cosh (\text{$\#$1} d+c) \text{Shi}(d (x-\text{$\#$1}))}{\text{$\#$1}}\& \right ]-6 d x \sinh (c) \text{Chi}(d x)-6 d x \cosh (c) \text{Shi}(d x)+6 \cosh (c+d x)}{6 a x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.047, size = 187, normalized size = 0.5 \begin{align*} -{\frac{{{\rm e}^{-dx-c}}}{2\,ax}}+{\frac{d{{\rm e}^{-c}}{\it Ei} \left ( 1,dx \right ) }{2\,a}}+{\frac{d}{6\,a}\sum _{{\it \_R1}={\it RootOf} \left ( b{{\it \_Z}}^{3}-3\,{{\it \_Z}}^{2}bc+3\,{\it \_Z}\,b{c}^{2}+a{d}^{3}-b{c}^{3} \right ) }{\frac{{{\rm e}^{-{\it \_R1}}}{\it Ei} \left ( 1,dx-{\it \_R1}+c \right ) }{{\it \_R1}-c}}}-{\frac{{{\rm e}^{dx+c}}}{2\,ax}}-{\frac{d{{\rm e}^{c}}{\it Ei} \left ( 1,-dx \right ) }{2\,a}}+{\frac{d}{6\,a}\sum _{{\it \_R1}={\it RootOf} \left ( b{{\it \_Z}}^{3}-3\,{{\it \_Z}}^{2}bc+3\,{\it \_Z}\,b{c}^{2}+a{d}^{3}-b{c}^{3} \right ) }{\frac{{{\rm e}^{{\it \_R1}}}{\it Ei} \left ( 1,-dx+{\it \_R1}-c \right ) }{{\it \_R1}-c}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.18902, size = 2921, normalized size = 7.67 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh \left (d x + c\right )}{{\left (b x^{3} + a\right )} x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]